
		<!--center begin-->
        <?php
                $majorid = $_GET['majorid'];
        ?>
		<div id="sidebar_center">
			<dl class="box1" style="height: 100%;margin-top: 0">
				<dt>
					<ul id="nav-table">
						<a class=" news_nav article_golink " href="#"><?php echo(fs_get_objinfo('nettteach_major', 'id', $majorid,'name'))?>__公开课程</a>
					</ul>					
				</dt>
				<dd id="tab-content" style="padding-left: 10px">
					<ul style="display:block;">
							<table border="0" cellpadding="0" cellspacing="0" class="" align="center" width="100%">
                                <tr align="center">
                                        <td style="line-height:2em;" nowrap>序号</td>
                                        <td nowrap>课程名称</td>
                                        <td nowrap>课程简介</td>
                                        <td nowrap>主讲教师</td>
                                </tr> 
                                <?php 
                                         $i=0;
                                         $sql_course = "select nc.id as courseid,nc.introduction as introduction,nc.teacherid as teacherid,nc.title as title from nettteach_course nc,nettteach_member nb  where nc.state='0' and nc.teacherid =nb.id and nb.type in('1','2') and nb.majorid='".$majorid."'   ";
                                         $result_course = $db -> query($sql_course);
                                         while($row_course = $db ->fetch_array($result_course))
                                        {
                                                 $i++;
                                ?>
                                <tr>
                                  <td height=1 colspan=10 bgcolor="#CCCCCC" onMouseOver="bgColor='#FF8899'" onMouseOut="bgColor=' #CCCCCC'"></td>
                                </tr>
                                <tr height="50px" onMouseOver="bgColor='#FF8899'" onMouseOut="bgColor='FFFFFF'"  align="center" title="">

                                        <td style="line-height:2em;width: 5%"><?php echo ($i)?></a> </td>
                                        <td style="width: 20%"><a target=_blank href="?do=viewcourse&courseid=<?php echo ($row_course['courseid'])?>" title="点击查看" style="color: blue;"><?php echo ($row_course['title'])?></a></td>
                                        <td style="width: 60%" title="<?php echo $repalce=str_replace(array('<p>','</p>'), array('',''), $row_course['introduction'])?>"><?php echo (sub_str($row_course['introduction'],62))?> </td>
                                        <td style="width: 10%"><?php echo (fs_get_objinfo("nettteach_member","id",$row_course['teacherid'], "realname"))?></td>
                                </tr>
                                <?php
                                        }
                                ?>
                            </table>
					
					</ul>
				</dd>
			</dl>
			<div style="clear:both;"></div>		
		</div>
	<!--center end-->
    <?php include_once('main/common/right.php'); ?>